# 用户models的序列化类
import bdb

from applications.exts import ma
from marshmallow import fields


class CouponOutSchema(ma.Schema):
    id = fields.Integer()
    coupon_sn = fields.Str()
    coupon_name=fields.Str()
    coupon_type = fields.Str()
    minmoney = fields.Integer()
    submoney = fields.Integer()
    numbers = fields.Integer()
    coupon_status = fields.Integer()
    start_time = fields.DateTime()
    end_time = fields.DateTime()
    is_del = fields.Integer()
    text = fields.Str()
    wx_coupon_classifyid=fields.Integer()